public class HungrySingLeton {
    public static final HungrySingLeton INSTANCE = new HungrySingLeton();
    private HungrySingLeton(){
        System.out.println("酱香拿铁");
    }

    public static HungrySingLeton getInstance(){
        return INSTANCE;
    }
}
class Test04{
    public static void main(String[] args) {
        HungrySingLeton hy = HungrySingLeton.getInstance();
        HungrySingLeton hy1 = HungrySingLeton.getInstance();
        System.out.println(hy == hy1);
    }
}
